package com.jm.utils;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;



public class ObjectHelper {
	private static final Log log = LogFactory.getLog(ObjectHelper.class);
	   
	public static Object Create(String strType)
    {
        try
        {
            return Class.forName(strType).newInstance();
        }
        catch (Exception ex)
        {
        	log.error(StringHelper.Format("无法建立对象[%1$s]",strType),ex);
        	ex.printStackTrace();
            return null;
        }
    }
}
